﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Architecture.Domain.RBAC;
using Architecture.Repository.Interface;

namespace Architecture.Repository.Impl
{
    public class RelatedRepository : BaseRepository<Related>, IRelatedRepository
    {
        public RelatedRepository(EFCoreContext context) : base(context)
        {
        }
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public async Task<int> AddAsync(Related entity)
        {
            return await base.AddAsync(entity);
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public async Task<int> UpdateAsync(Related entity)
        {
            return await base.UpdateAsync(entity);
        }
        /// <summary>
        /// 显示查询
        /// </summary>
        /// <returns></returns>
        public async Task<List<Related>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task<Related> GetAsync(int id)
        {
            return await base.GetAsync(id);
        }
        //删除、真
        public async Task<int> DeleteAsync(Related model)
        {
            return await base.DeleteAsync(model);
        }
    }
}
